﻿namespace SampleApplication.CoffeeShopSample.Implementation.Domain
{
    #region Usings

    using Dependencies.Domain;
    using System;

    #endregion Usings

    internal class Tea : BaseBeverage
    {
        public ITeaBag TeaBag { get; private set; }

        public Tea(ITeaBag teaBag, int quantity)
            : base(quantity)
        {
            if (teaBag == null) throw new ArgumentNullException("teaBag");

            TeaBag = teaBag;
            if (quantity < 0) throw new ArgumentException("The quantity can't be a negative value.");
        }

        public override string Name
        {
            get { return TeaBag.Name; }
        }
    }
}